package com.demo.springBoot2.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author pl711@qq.com
 * @PackageName springBoot2
 * @Package com.demo.springBoot2.entity.dto
 * @Date 2024/3/27 14:24
 * @Version 1.0
 */
@Data
public class ChatMessagesDTO {

    @ApiModelProperty("自己id")
    private Integer userId;

    @ApiModelProperty("好友名字")
    private String nickname;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
